<section>
<h2>Login</h2>
<?php echo Common::renderFlashMessage() ?>
<p><?php if($this->errorMessage) { echo $this->errorMessage; } ?></p>
<form method="post" id="formLogin" name="formLogin" action="<?php $_SERVER['PHP_SELF']; ?>">
	<p>
		<label for="user">Username:</label><input type="text" id="user" name="user" value="<?php echo @$_POST['user'] ?>">
	</p>
	<p>
		<label for="pass">Password: </label><input type="password" id="pass" name="pass">
	</p>
	<p>
		<input type="submit" value="submit" id="submit" name="submitLogin">
	</p>
</form>
<p>or <a href="/user/register">Register an account</a></p>
</section>